import { Injectable } from '@angular/core';
import { HttpService } from '../HTTP/http.service';

import { authorizeApirequestInterface } from './interface/authorize.apirequest.interface';
@Injectable()
export class AuthorizeApirequest implements authorizeApirequestInterface {

  constructor(private http: HttpService) {
  }

  async auth(UserName: string, Password: string): Promise<any> {
    return this.http.post('/api/Authorize/Auth', { UserName, Password });
  }

}